using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace WuLongAssistance.UserControls {
    public partial class CopyTextbox : UserControl {
        public CopyTextbox() {
            InitializeComponent();
        }

        [Browsable(true), Description("Textbox's Text Attribute")]
        public new string Text {
            get {
                return txbMain.Text;
            }
            set {
                txbMain.Text = value;
            }
        }

        [Browsable(true), Description("Textbox's ReadOnly Attribute")]
        public bool ReadOnly {
            get {
                return txbMain.ReadOnly;
            }
            set {
                txbMain.ReadOnly = value;
            }
        }

        private void btnCopy_Click(object sender, EventArgs e) {
            Clipboard.SetText(txbMain.Text);
        }

    }
}
